package com.atme.micromall.member.service.impl;


import com.atme.micromall.member.service.AsyncService;
import com.atme.micromall.member.service.MemberService;
import com.atme.micromall.member.service.ServicePointsFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncServiceImpl implements AsyncService {

    @Autowired
    private ServicePointsFeignClient servicePointsFeignClient;

    @Override
    @Async
    public void updatePoints(Integer id, Integer number) {

        System.out.println("执行一次");
        servicePointsFeignClient.update(id,number);
    }
}
